package com.ys;

/**
 * 3 2020-06-11 2020-06-11 // 统计指定时间段内的每件物品的消费数额
 * @program: note
 * @description:
 * @author:
 * @create 2020-06-11 22:49
 **/
public class CommandNameCost extends CommandBase {

    public CommandNameCost(ConsumeRecordController consumeRecordController, String[] input) {
        super(consumeRecordController, input);
    }

    @Override
    public void doExecute() {
        String startTime = input[1].trim();
        String endTime = input[2].trim();
        System.out.println("+++++++++++查询结果为+++++++++++");
        System.out.println(consumeRecordController.getNameCostBetweenTime(startTime, endTime));
    }
}
